PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-08-22 10:23:47.564817+00:00 (UTC)
In US/Central Time, this is 2024-08-22 05:23:47.564817-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/c8c67664dbf56021c9b76fe11d51ee625ba7387922b361d9a2ea4fcac26d00eb.png
We are just generating a random time serie here.
../../_images/f1805d42e62893e5dc569f86e21238a1bf0383da952e7b1cfce5fca15e54f02e.png
../../_images/28c167808e5bd5d6ab91e2ae84274bcbfac4ff470d5694322777c74845574a0a.png